{% assign data = section.settings %}
<div class="block_logo_list">
  <div class="container_wrapper">
    {% include 'title', title: data.block_title,detail: data.block_detail %}
    <div class="content">
      <ul class="list">
        {% for block in section.blocks %}
          <li class="list_item" style="--opacity: {{ data.mask | divided_by : 100  }};">
            <a href="{{block.href | setUrlDataFrom:data_from}}">
              {% include 'lazy_img',src: block.image.src, alt: block.image.alt %}
            </a>
          </li>
        {% endfor %}
      </ul>
    </div>
  </div>
</div>

{% schema %}
  {
    "class": "block_logo_list",
    "is_global": false,
    "icon": "icon-dantu",
    "name": {
      "zh_CN": "商标列表",
      "en_US": "List of trademarks"
    },
    "max_blocks": 20,
    "blocks": [
      {
        "name": {
          "zh_CN": "商标列表",
          "en_US": "List of trademarks"
        },
        "type": "logo_list_item",
        "settings": [
          {
            "type": "card_image",
            "label": {
              "zh_CN": "商标图片",
              "en_US": "Trademark image"
            },
            "default": {
              "src": "",
              "alt": ""
            },
            "info": {
              "zh_CN": "建议宽度400px，高度200px",
              "en_US": "Recommended width 400px, height 200px"
            },
            "id": "image"
          }, {
            "type": "card_page_link",
            "label": {
              "zh_CN": "跳转链接",
              "en_US": "Jump links"
            },
            "default": {
              "type": "",
              "title": "",
              "url": ""
            },
            "id": "href"
          }
        ]
      }
    ],
    "settings": [
      {
        "type": "card_header",
        "label": {
          "zh_CN": "设置",
          "en_US": "Settings"
        }
      }, {
        "type": "card_slider",
        "label": {
          "zh_CN": "透明度",
          "en_US": "Transparency"
        },
        "id": "mask",
        "max": "100",
        "min": "0",
        "default": "40"
      }, {
        "type": "card_header",
        "label": {
          "zh_CN": "内容",
          "en_US": "Content"
        }
      }
    ],
    "default": {
      "settings": {
        "mask": 40
      },
      "blocks": [
        {
          "image": {
            "src": "",
            "alt": ""
          },
          "href": {
            "type": "",
            "title": "",
            "url": ""
          },
          "block_type": "logo_list_item"
        },
        {
          "image": {
            "src": "",
            "alt": ""
          },
          "href": {
            "type": "",
            "title": "",
            "url": ""
          },
          "block_type": "logo_list_item"
        },
        {
          "image": {
            "src": "",
            "alt": ""
          },
          "href": {
            "type": "",
            "title": "",
            "url": ""
          },
          "block_type": "logo_list_item"
        },
        {
          "image": {
            "src": "",
            "alt": ""
          },
          "href": {
            "type": "",
            "title": "",
            "url": ""
          },
          "block_type": "logo_list_item"
        }, {
          "image": {
            "src": "",
            "alt": ""
          },
          "href": {
            "type": "",
            "title": "",
            "url": ""
          },
          "block_type": "logo_list_item"
        }
      ]
    }
  }
{% endschema %}